import request from '@/utils/request'


// 查询科室列表
export function listDept(query) {
  return request({
    url: '/treat/registered/deptlist',
    method: 'get',
    params: query
  })
}

// 根据患者身份证号查询患者信息
export function getPatientInfo(patientIdnum) {
  return request({
    url: '/treat/patient/' + patientIdnum,
    method: 'get'
  })
}

// 查询挂号列表
export function listRegister(query) {
  return request({
    url: '/treat/registered/list',
    method: 'get',
    params: query
  })
}

// 在挂号类型表中，根据挂号类型查询对应的挂号费用
export function getRegistraFee(name) {
  return request({
    url : "/treat/registered/RegistraFee/" + name,
    method : 'get'
  })
}

//
export function selectAllGuaHaoType(){
  return request({
    url : "/treat/registered/RegistraFee/guahao",
    method : 'get'
  })
}
